{% load widgets %}

{% load_latest_blog_comments blog_slug %}

{% if latest_comments %}
    <h3>Recent Comments</h3>
    <ul id="recent-comments">
    {% for comment in latest_comments %}
        <li{% if forloop.last %} class="last"{% endif %}>
            <strong>
                {% if comment.website %}
                    <a href="{{ comment.website }}">{{ comment.name }}</a>:
                {% else %}
                    {{ comment.name }}:
                {% endif %}
            </strong>{{ comment.message|truncatewords_html:50|striptags }}<br />
            <small>
                <a href="{{ comment.post.get_absolute_url }}#comments">{{ comment.post.title }}</a> . 
                {{ comment.date|timesince }} ago
            </small>
        </li>
    {% endfor %}
    </ul>
{% endif %}
